/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package commun;

import java.io.Serializable;

/**
 *
 * @author Qiao Bingzhi
 */
public class Message implements Serializable {
    
    private String FromId;
    private String ToId;
    private String Message;
    private String Date;

    /**
     * Get the value of Date
     *
     * @return the value of Date
     */
    public String getDate() {
        return Date;
    }

    /**
     * Set the value of Date
     *
     * @param Date new value of Date
     */
    public void setDate(String Date) {
        this.Date = Date;
    }

    /**
     * Message's constructor
     * @param FromId Id of the user who send this message
     * @param ToId Id of the user who receive this message
     * @param Message Content of this message
     * @param Date Date of this message
     */
    public Message(String FromId, String ToId, String Message,String Date) {
        this.FromId = FromId;
        this.ToId = ToId;
        this.Message = Message;
        this.Date=Date;
        
    }
    
    

    /**
     * Get the value of Message
     *
     * @return the value of Message
     */
    public String getMessage() {
        return Message;
    }

    /**
     * Set the value of Message
     *
     * @param Message new value of Message
     */
    public void setMessage(String Message) {
        this.Message = Message;
    }


    /**
     * Get the value of ToId
     *
     * @return the value of ToId
     */
    public String getToId() {
        return ToId;
    }

    /**
     * Set the value of ToId
     *
     * @param ToId new value of ToId
     */
    public void setToId(String ToId) {
        this.ToId = ToId;
    }


    /**
     * Get the value of FromId
     *
     * @return the value of FromId
     */
    public String getFromId() {
        return FromId;
    }

    /**
     * Set the value of FromId
     *
     * @param FromId new value of FromId
     */
    public void setFromId(String FromId) {
        this.FromId = FromId;
    }

    
}
